package com.wenhao.newcode.huawei;

import java.util.Scanner;

/**
 * @author Wenhao Tong
 * @date 2021/7/15 下午10:56
 */
public class MainHJ6 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        long l = scanner.nextLong();
        for (long i = 2;i < l;i++) {
            while (l % i == 0) {
                l /= i;
                System.out.print(i + " ");
            }
        }
        if (l != 1) {
            System.out.println(l + " ");
        }
    }
}
